package org.dromara.study.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

@TableName("book")
@Data
@EqualsAndHashCode(callSuper = true)
public class Book extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 书名
     */
    private String name;

    /**
     * 作者
     */
    private String author;

    /**
     * ISBN 出版商
     */
    private String isbn;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 库存
     */
    private Integer stock;
}
